<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:$row.start_time?datetime($row.start_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:$row.end_time?datetime($row.end_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="range-courses">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('商品选择')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <span><button type="button" class="btn btn-primary course-choose" ><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('')}</label>
            <div class="col-xs-12 col-sm-8">

                <table class="table">
                    <thead>
                    <tr>
                        <th style="text-align: left;width:20%">缩略图</th>
                        <th style="text-align: left;width:50%">名称</th>
                        <th style="text-align: left;width: 30%">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="course" id="item"}
                    <tr>
                        <input type="hidden" name="course_ids[]" value="{$item.id}">
                        <td><img width="40px" src="{$item.thumb_image}" alt=""></td>
                        <td>{$item.name}</td>
                        <td><p><button type="button" class="btn btn-danger course_del"><i class="fa fa-trash"></i></button>
                            <button type="button" class="btn btn-warning course_detail" data-course_id="{$item.id}"><i class="fa fa-eye"></i></button></p></td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>

                <!--                    <div class="row">-->
                <!--                        <div class="col-sm-6 col-md-6" v-for="(item, index) in goods">-->

                <!--                            <div class="thumbnail">-->
                <!--                                <img src="http://file.shopro.top/uploads/20210519/46be61da737d99937df1917ff3c694a2.jpeg" alt="">-->
                <!--                                <div class="caption">-->
                <!--                                    <h6>{{item.name}} </h6>-->
                <!--                                    &lt;!&ndash;                                <p>...</p >&ndash;&gt;-->
                <!--                                    <input type="hidden" name="goods_ids[]" :value="item.id">-->
                <!--                                    <p><button type="button" class="btn btn-danger" @click="del(index)"><i class="fa fa-trash"></i></button>-->
                <!--                                        <a href="javascript:;" @click="detail(item.id)" class="btn btn-default" role="button">详情</a>-->
                <!--                                    </p >-->
                <!--                                </div>-->
                <!--                            </div>-->
                <!--                        </div>-->
                <!--                    </div>-->
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
